/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.scene.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 网络管理Entity
 * @author dh
 * @version 2017-03-20
 */
public class SceneNetwork extends DataEntity<SceneNetwork> {
	
	private static final long serialVersionUID = 1L;
	private String networkName;		// 网络名称
	private String networkStatus;		// 网络状态
	private String type;//网络类型，0正常创建，1路由路由间
	private String subnetName;
	private String cidr;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCidr() {
		return cidr;
	}

	public void setCidr(String cidr) {
		this.cidr = cidr;
	}

	public String getSubnetName() {
		return subnetName;
	}

	public void setSubnetName(String subnetName) {
		this.subnetName = subnetName;
	}

	public SceneNetwork() {
		super();
	}

	public SceneNetwork(String id){
		super(id);
	}

	@Length(min=0, max=64, message="网络名称长度必须介于 0 和 64 之间")
	public String getNetworkName() {
		return networkName;
	}

	public void setNetworkName(String networkName) {
		this.networkName = networkName;
	}

	@Length(min=0, max=64, message="网络状态长度必须介于 0 和 64 之间")
	public String getNetworkStatus() {
		return networkStatus;
	}

	public void setNetworkStatus(String networkStatus) {
		this.networkStatus = networkStatus;
	}
	
}